package com.sx.epidemic_system.service.impl;

import com.sx.epidemic_system.entity.CountryVo;
import com.sx.epidemic_system.entity.MapValue;
import com.sx.epidemic_system.mapper.CountryMapper;
import com.sx.epidemic_system.mapper.PatientMapper;
import com.sx.epidemic_system.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountryServiceImp implements CountryService {
    @Autowired
    private CountryMapper c1;

    @Override
    public CountryVo baseWorldData() {
        return new CountryVo(c1.queryConfirmAdd(),c1.queryDeadCompare(),c1.queryNowConfirm(),c1.queryConfirm(),c1.queryDead(),c1.queryHeal());
    }

    @Override
    public List<MapValue> queryWorldConfirm() {
        return c1.queryWorldConfirm();
    }

    @Override
    public List<MapValue> queryWorldNowConfirm() {
        return c1.queryWorldNowConfirm();
    }


}
